package service

import "bc/dao"

type os struct {

}

func (t *os)Create(d map[string]interface{}) (bool,int) {

	return dao.OSdao.Create(d)

}
func (t *os)Delete(os_id int) bool {

	return dao.OSdao.Delete(os_id)

}
func (t *os)Update(os_id int,f map[string]interface{}) bool {

	return dao.OSdao.Update(os_id,f)

}
func (t *os)Find(w map[string]interface{},page int64,pageSize int64) ([]*dao.OS,int,error) {

	return dao.OSdao.Find(w,page,pageSize)

}
func (t *os)First(os_id int) (bool, *dao.OS){

	return dao.OSdao.First(os_id)

}
func (t *os)FirstByName(name string) (bool, *dao.OS){

	return dao.OSdao.FirstByName(name)

}

var OS = &os{}
